<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Object::Accessor - interface to create per object accessors - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Object-Accessor - MetaCPAN" href="https://metacpan.org/dist/Object-Accessor/releases.rss" />
        <link rel="canonical" href="./Object::Accessor.html" />
        <meta name="description" content="interface to create per object accessors" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Object::Accessor" />
<meta name="twitter:title"       content="Object::Accessor" />
<meta name="twitter:description" content="interface to create per object accessors" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Object::Accessor.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Object-Accessor was released.">
      <span class="relatize">06 Jun 2013 09:18:14 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Object-Accessor">Object-Accessor</a>
  </li>
  <li>
    Module version: 0.48
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Object-Accessor/source/lib/Object/Accessor.pm">Source</a>
    (<a href="https://metacpan.org/dist/Object-Accessor/source/lib/Object/Accessor.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Object-Accessor/source/lib/Object">Browse</a>
    (<a href="https://metacpan.org/dist/Object-Accessor/source/lib/Object?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Object-Accessor/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Object-Accessor/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/jib/object-accessor">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Object-Accessor">Issues</a>
      (0)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Object-Accessor+0.48" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/O/Object-Accessor.html?oncpan=1&amp;distmat=1&amp;version=0.48&amp;grade=2" style="color: #090">4221</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/O/Object-Accessor.html?oncpan=1&amp;distmat=1&amp;version=0.48&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/O/Object-Accessor.html?oncpan=1&amp;distmat=1&amp;version=0.48&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/BINGOS/Object-Accessor-0.48">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Object-Accessor who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Object-Accessor-0.48/index.html">90.75% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Object-Accessor/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Object-Accessor-0.48.tar.gz">
      Download (<span itemprop="fileSize">12.8KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FBINGOS%2FObject-Accessor-0.48%2Flib%2FObject%2FAccessor.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Object-Accessor/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Object-Accessor/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Object-Accessor">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Object-Accessor">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Object/Accessor.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="BINGOS/Object-Accessor-0.48"
>0.48
  (BINGOS on 2013-06-06)</option>
<option
  
  value="KANE/Object-Accessor-0.34"
>0.34
  (KANE on 2008-05-18)</option>
<option
  
  value="KANE/Object-Accessor-0.32"
>0.32
  (KANE on 2006-10-05)</option>
<option
  
  value="KANE/Object-Accessor-0.30"
>0.30
  (KANE on 2006-09-19)</option>
<option
  
  value="KANE/Object-Accessor-0.21"
>0.21
  (KANE on 2006-08-12)</option>
<option
  
  value="KANE/Object-Accessor-0.20"
>0.20
  (KANE on 2006-06-29)</option>
<option
  
  value="KANE/Object-Accessor-0.12"
>0.12
  (KANE on 2005-09-06)</option>
<option
  
  value="KANE/Object-Accessor-0.11"
>0.11
  (KANE on 2005-08-29)</option>
<option
  
  value="KANE/Object-Accessor-0.10"
>0.10
  (KANE on 2005-08-25)</option>
<option
  
  value="KANE/Object-Accessor-0.03"
>0.03
  (KANE on 2004-12-10)</option>
<option
  
  value="KANE/Object-Accessor-0.02"
>0.02
  (KANE on 2004-12-04)</option>
<option
  
  value="KANE/Object-Accessor-0.01"
>0.01
  (KANE on 2004-11-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="BINGOS/Object-Accessor-0.46"
>0.46
  (BINGOS on 2013-01-23)</option>
<option
  
  value="BINGOS/Object-Accessor-0.44"
>0.44
  (BINGOS on 2012-04-25)</option>
<option
  
  value="BINGOS/Object-Accessor-0.42"
>0.42
  (BINGOS on 2011-05-13)</option>
<option
  
  value="BINGOS/Object-Accessor-0.40"
>0.40
  (BINGOS on 2011-05-12)</option>
<option
  
  value="BINGOS/Object-Accessor-0.38"
>0.38
  (BINGOS on 2011-01-07)</option>
<option
  
  value="BINGOS/Object-Accessor-0.36"
>0.36
  (BINGOS on 2009-10-08)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/BINGOS/Object-Accessor-0.48/diff/' + encodeURIComponent(this.value) + '/lib/Object/Accessor.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="BINGOS/Object-Accessor-0.48"
>0.48
  (BINGOS on 2013-06-06)</option>
<option
  
  value="KANE/Object-Accessor-0.34"
>0.34
  (KANE on 2008-05-18)</option>
<option
  
  value="KANE/Object-Accessor-0.32"
>0.32
  (KANE on 2006-10-05)</option>
<option
  
  value="KANE/Object-Accessor-0.30"
>0.30
  (KANE on 2006-09-19)</option>
<option
  
  value="KANE/Object-Accessor-0.21"
>0.21
  (KANE on 2006-08-12)</option>
<option
  
  value="KANE/Object-Accessor-0.20"
>0.20
  (KANE on 2006-06-29)</option>
<option
  
  value="KANE/Object-Accessor-0.12"
>0.12
  (KANE on 2005-09-06)</option>
<option
  
  value="KANE/Object-Accessor-0.11"
>0.11
  (KANE on 2005-08-29)</option>
<option
  
  value="KANE/Object-Accessor-0.10"
>0.10
  (KANE on 2005-08-25)</option>
<option
  
  value="KANE/Object-Accessor-0.03"
>0.03
  (KANE on 2004-12-10)</option>
<option
  
  value="KANE/Object-Accessor-0.02"
>0.02
  (KANE on 2004-12-04)</option>
<option
  
  value="KANE/Object-Accessor-0.01"
>0.01
  (KANE on 2004-11-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="BINGOS/Object-Accessor-0.46"
>0.46
  (BINGOS on 2013-01-23)</option>
<option
  
  value="BINGOS/Object-Accessor-0.44"
>0.44
  (BINGOS on 2012-04-25)</option>
<option
  
  value="BINGOS/Object-Accessor-0.42"
>0.42
  (BINGOS on 2011-05-13)</option>
<option
  
  value="BINGOS/Object-Accessor-0.40"
>0.40
  (BINGOS on 2011-05-12)</option>
<option
  
  value="BINGOS/Object-Accessor-0.38"
>0.38
  (BINGOS on 2011-01-07)</option>
<option
  
  value="BINGOS/Object-Accessor-0.36"
>0.36
  (BINGOS on 2009-10-08)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><i class="ttip" title="dynamic_config enabled">unknown</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Object::Accessor/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Object%3A%3AAccessor">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Object-Accessor">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/BINGOS/Object-Accessor-0.48/view/lib/Object/Accessor.pm">This version</a>
    </li>
    <li>
      <a href="./Object::Accessor.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
    1 non-PAUSE user
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
    >
      Jos Boumans &lt;kane[at]cpan.org&gt;
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/BINGOS" class="author-name">Chris Williams</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Object/Accessor.pm&#39;" class="">
<option
  selected
  value="BINGOS/Object-Accessor-0.48"
>0.48
  (BINGOS on 2013-06-06)</option>
<option
  
  value="KANE/Object-Accessor-0.34"
>0.34
  (KANE on 2008-05-18)</option>
<option
  
  value="KANE/Object-Accessor-0.32"
>0.32
  (KANE on 2006-10-05)</option>
<option
  
  value="KANE/Object-Accessor-0.30"
>0.30
  (KANE on 2006-09-19)</option>
<option
  
  value="KANE/Object-Accessor-0.21"
>0.21
  (KANE on 2006-08-12)</option>
<option
  
  value="KANE/Object-Accessor-0.20"
>0.20
  (KANE on 2006-06-29)</option>
<option
  
  value="KANE/Object-Accessor-0.12"
>0.12
  (KANE on 2005-09-06)</option>
<option
  
  value="KANE/Object-Accessor-0.11"
>0.11
  (KANE on 2005-08-29)</option>
<option
  
  value="KANE/Object-Accessor-0.10"
>0.10
  (KANE on 2005-08-25)</option>
<option
  
  value="KANE/Object-Accessor-0.03"
>0.03
  (KANE on 2004-12-10)</option>
<option
  
  value="KANE/Object-Accessor-0.02"
>0.02
  (KANE on 2004-12-04)</option>
<option
  
  value="KANE/Object-Accessor-0.01"
>0.01
  (KANE on 2004-11-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="BINGOS/Object-Accessor-0.46"
>0.46
  (BINGOS on 2013-01-23)</option>
<option
  
  value="BINGOS/Object-Accessor-0.44"
>0.44
  (BINGOS on 2012-04-25)</option>
<option
  
  value="BINGOS/Object-Accessor-0.42"
>0.42
  (BINGOS on 2011-05-13)</option>
<option
  
  value="BINGOS/Object-Accessor-0.40"
>0.40
  (BINGOS on 2011-05-12)</option>
<option
  
  value="BINGOS/Object-Accessor-0.38"
>0.38
  (BINGOS on 2011-01-07)</option>
<option
  
  value="BINGOS/Object-Accessor-0.36"
>0.36
  (BINGOS on 2009-10-08)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Object-Accessor">Object-Accessor-0.48</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage two &#10;
          • 7 direct dependents &#10;          • 13 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Object-Accessor-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Object-Accessor-0.48">
    <input type="hidden" name="author" value="BINGOS">
    <input type="hidden" name="distribution" value="Object-Accessor">
    <button type="submit" class="favorite highlight"><span>1</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Object::Accessor.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>1</span> ++</a>
</div>
   / <span>Object::Accessor</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Object::Accessor.html#NAME">NAME</a></li>
  <li><a href="./Object::Accessor.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Object::Accessor.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Object::Accessor.html#METHODS">METHODS</a>
    <ul>
      <li><a href="./Object::Accessor.html#$object-=-Object::Accessor-%3Enew(-%5BARGS%5D-);">$object = Object::Accessor-&gt;new( [ARGS] );</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$object-%3Emk_accessors(-@ACCESSORS-%7C-%5C%25ACCESSOR_MAP-);">$bool = $object-&gt;mk_accessors( @ACCESSORS | \%ACCESSOR_MAP );</a></li>
      <li><a href="./Object::Accessor.html#@list-=-$self-%3Els_accessors;">@list = $self-&gt;ls_accessors;</a></li>
      <li><a href="./Object::Accessor.html#$ref-=-$self-%3Els_allow(KEY)">$ref = $self-&gt;ls_allow(KEY)</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3Emk_aliases(-alias-=%3E-method,-%5Balias2-=%3E-method2,-...%5D-);">$bool = $self-&gt;mk_aliases( alias =&gt; method, [alias2 =&gt; method2, ...] );</a></li>
      <li><a href="./Object::Accessor.html#$clone-=-$self-%3Emk_clone;">$clone = $self-&gt;mk_clone;</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3Emk_flush;">$bool = $self-&gt;mk_flush;</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3Emk_verify;">$bool = $self-&gt;mk_verify;</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3Eregister_callback(-sub-%7B-...-%7D-);">$bool = $self-&gt;register_callback( sub { ... } );</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3Ecan(-METHOD_NAME-)">$bool = $self-&gt;can( METHOD_NAME )</a></li>
      <li><a href="./Object::Accessor.html#$val-=-$self-%3E___get(-METHOD_NAME-);">$val = $self-&gt;___get( METHOD_NAME );</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3E___set(-METHOD_NAME-=%3E-VALUE-);">$bool = $self-&gt;___set( METHOD_NAME =&gt; VALUE );</a></li>
      <li><a href="./Object::Accessor.html#$bool-=-$self-%3E___alias(-ALIAS-=%3E-METHOD-);">$bool = $self-&gt;___alias( ALIAS =&gt; METHOD );</a></li>
    </ul>
  </li>
  <li><a href="./Object::Accessor.html#LVALUE-ACCESSORS">LVALUE ACCESSORS</a>
    <ul>
      <li><a href="./Object::Accessor.html#CAVEATS">CAVEATS</a></li>
    </ul>
  </li>
  <li><a href="./Object::Accessor.html#GLOBAL-VARIABLES">GLOBAL VARIABLES</a>
    <ul>
      <li><a href="./Object::Accessor.html#$Object::Accessor::FATAL">$Object::Accessor::FATAL</a></li>
      <li><a href="./Object::Accessor.html#$Object::Accessor::DEBUG">$Object::Accessor::DEBUG</a></li>
    </ul>
  </li>
  <li><a href="./Object::Accessor.html#TODO">TODO</a>
    <ul>
      <li><a href="./Object::Accessor.html#Create-read-only-accessors">Create read-only accessors</a></li>
    </ul>
  </li>
  <li><a href="./Object::Accessor.html#CAVEATS1">CAVEATS</a></li>
  <li><a href="./Object::Accessor.html#BUG-REPORTS">BUG REPORTS</a></li>
  <li><a href="./Object::Accessor.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Object::Accessor.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Object::Accessor - interface to create per object accessors</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    ### using the object
    $obj = Object::Accessor-&gt;new;        # create object
    $obj = Object::Accessor-&gt;new(@list); # create object with accessors
    $obj = Object::Accessor-&gt;new(\%h);   # create object with accessors
                                         # and their allow handlers

    $bool   = $obj-&gt;mk_accessors(&#39;foo&#39;); # create accessors
    $bool   = $obj-&gt;mk_accessors(        # create accessors with input
               {foo =&gt; ALLOW_HANDLER} ); # validation

    $bool   = $obj-&gt;mk_aliases(          # create an alias to an existing
                alias_name =&gt; &#39;method&#39;); # method name

    $clone  = $obj-&gt;mk_clone;            # create a clone of original
                                         # object without data
    $bool   = $obj-&gt;mk_flush;            # clean out all data

    @list   = $obj-&gt;ls_accessors;        # retrieves a list of all
                                         # accessors for this object

    $bar    = $obj-&gt;foo(&#39;bar&#39;);          # set &#39;foo&#39; to &#39;bar&#39;
    $bar    = $obj-&gt;foo();               # retrieve &#39;bar&#39; again

    $sub    = $obj-&gt;can(&#39;foo&#39;);          # retrieve coderef for
                                         # &#39;foo&#39; accessor
    $bar    = $sub-&gt;(&#39;bar&#39;);             # set &#39;foo&#39; via coderef
    $bar    = $sub-&gt;();                  # retrieve &#39;bar&#39; by coderef

    ### using the object as base class
    package My::Class;
    use base &#39;Object::Accessor&#39;;

    $obj    = My::Class-&gt;new;               # create base object
    $bool   = $obj-&gt;mk_accessors(&#39;foo&#39;);    # create accessors, etc...

    ### make all attempted access to non-existent accessors fatal
    ### (defaults to false)
    $Object::Accessor::FATAL = 1;

    ### enable debugging
    $Object::Accessor::DEBUG = 1;

    ### advanced usage -- callbacks
    {   my $obj = Object::Accessor-&gt;new(&#39;foo&#39;);
        $obj-&gt;register_callback( sub { ... } );

        $obj-&gt;foo( 1 ); # these calls invoke the callback you registered
        $obj-&gt;foo()     # which allows you to change the get/set
                        # behaviour and what is returned to the caller.
    }

    ### advanced usage -- lvalue attributes
    {   my $obj = Object::Accessor::Lvalue-&gt;new(&#39;foo&#39;);
        print $obj-&gt;foo = 1;            # will print 1
    }

    ### advanced usage -- scoped attribute values
    {   my $obj = Object::Accessor-&gt;new(&#39;foo&#39;);

        $obj-&gt;foo( 1 );
        print $obj-&gt;foo;                # will print 1

        ### bind the scope of the value of attribute &#39;foo&#39;
        ### to the scope of &#39;$x&#39; -- when $x goes out of
        ### scope, &#39;foo&#39;s previous value will be restored
        {   $obj-&gt;foo( 2 =&gt; \my $x );
            print $obj-&gt;foo, &#39; &#39;, $x;   # will print &#39;2 2&#39;
        }
        print $obj-&gt;foo;                # will print 1
    }</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><code>Object::Accessor</code> provides an interface to create per object accessors (as opposed to per <code>Class</code> accessors, as, for example, <code>Class::Accessor</code> provides).</p>

<p>You can choose to either subclass this module, and thus using its accessors on your own module, or to store an <code>Object::Accessor</code> object inside your own object, and access the accessors from there. See the <code>SYNOPSIS</code> for examples.</p>

<h1 id="METHODS">METHODS</h1>

<h2 id="$object-=-Object::Accessor-&gt;new(-[ARGS]-);"><a id="object---Object::Accessor--new---ARGS"></a>$object = Object::Accessor-&gt;new( [ARGS] );</h2>

<p>Creates a new (and empty) <code>Object::Accessor</code> object. This method is inheritable.</p>

<p>Any arguments given to <code>new</code> are passed straight to <code>mk_accessors</code>.</p>

<p>If you want to be able to assign to your accessors as if they were <code>lvalue</code>s, you should create your object in the <code>Object::Accessor::Lvalue</code> namespace instead. See the section on <code>LVALUE ACCESSORS</code> below.</p>

<h2 id="$bool-=-$object-&gt;mk_accessors(-@ACCESSORS-|-\%ACCESSOR_MAP-);"><a id="bool----object--mk_accessors---ACCESSORS----ACCESSOR_MAP"></a>$bool = $object-&gt;mk_accessors( @ACCESSORS | \%ACCESSOR_MAP );</h2>

<p>Creates a list of accessors for this object (and <code>NOT</code> for other ones in the same class!). Will not clobber existing data, so if an accessor already exists, requesting to create again is effectively a <code>no-op</code>.</p>

<p>When providing a <code>hashref</code> as argument, rather than a normal list, you can specify a list of key/value pairs of accessors and their respective input validators. The validators can be anything that <code>Params::Check</code>&#39;s <code>allow</code> function accepts. Please see its manpage for details.</p>

<p>For example:</p>

<pre><code>    $object-&gt;mk_accessors( {
        foo     =&gt; qr/^\d+$/,       # digits only
        bar     =&gt; [0,1],           # booleans
        zot     =&gt; \&amp;my_sub         # a custom verification sub
    } );</code></pre>

<p>Returns true on success, false on failure.</p>

<p>Accessors that are called on an object, that do not exist return <code>undef</code> by default, but you can make this a fatal error by setting the global variable <code>$FATAL</code> to true. See the section on <code>GLOBAL VARIABLES</code> for details.</p>

<p>Note that you can bind the values of attributes to a scope. This allows you to <code>temporarily</code> change a value of an attribute, and have it&#39;s original value restored up on the end of it&#39;s bound variable&#39;s scope;</p>

<p>For example, in this snippet of code, the attribute <code>foo</code> will temporarily be set to <code>2</code>, until the end of the scope of <code>$x</code>, at which point the original value of <code>1</code> will be restored.</p>

<pre><code>    my $obj = Object::Accessor-&gt;new;

    $obj-&gt;mk_accessors(&#39;foo&#39;);
    $obj-&gt;foo( 1 );
    print $obj-&gt;foo;                # will print 1

    ### bind the scope of the value of attribute &#39;foo&#39;
    ### to the scope of &#39;$x&#39; -- when $x goes out of
    ### scope, &#39;foo&#39; previous value will be restored
    {   $obj-&gt;foo( 2 =&gt; \my $x );
        print $obj-&gt;foo, &#39; &#39;, $x;   # will print &#39;2 2&#39;
    }
    print $obj-&gt;foo;                # will print 1</code></pre>

<p>Note that all accessors are read/write for everyone. See the <code>TODO</code> section for details.</p>

<h2 id="@list-=-$self-&gt;ls_accessors;"><a id="list----self--ls_accessors"></a>@list = $self-&gt;ls_accessors;</h2>

<p>Returns a list of accessors that are supported by the current object. The corresponding coderefs can be retrieved by passing this list one by one to the <code>can</code> method.</p>

<h2 id="$ref-=-$self-&gt;ls_allow(KEY)"><a id="ref----self--ls_allow-KEY"></a>$ref = $self-&gt;ls_allow(KEY)</h2>

<p>Returns the allow handler for the given key, which can be used with <code>Params::Check</code>&#39;s <code>allow()</code> handler. If there was no allow handler specified, an allow handler that always returns true will be returned.</p>

<h2 id="$bool-=-$self-&gt;mk_aliases(-alias-=&gt;-method,-[alias2-=&gt;-method2,-...]-);"><a id="bool----self--mk_aliases--alias---method---alias2---method2"></a>$bool = $self-&gt;mk_aliases( alias =&gt; method, [alias2 =&gt; method2, ...] );</h2>

<p>Creates an alias for a given method name. For all intents and purposes, these two accessors are now identical for this object. This is akin to doing the following on the symbol table level:</p>

<pre><code>  *alias = *method</code></pre>

<p>This allows you to do the following:</p>

<pre><code>  $self-&gt;mk_accessors(&#39;foo&#39;);
  $self-&gt;mk_aliases( bar =&gt; &#39;foo&#39; );

  $self-&gt;bar( 42 );
  print $self-&gt;foo;     # will print 42</code></pre>

<h2 id="$clone-=-$self-&gt;mk_clone;"><a id="clone----self--mk_clone"></a>$clone = $self-&gt;mk_clone;</h2>

<p>Makes a clone of the current object, which will have the exact same accessors as the current object, but without the data stored in them.</p>

<h2 id="$bool-=-$self-&gt;mk_flush;"><a id="bool----self--mk_flush"></a>$bool = $self-&gt;mk_flush;</h2>

<p>Flushes all the data from the current object; all accessors will be set back to their default state of <code>undef</code>.</p>

<p>Returns true on success and false on failure.</p>

<h2 id="$bool-=-$self-&gt;mk_verify;"><a id="bool----self--mk_verify"></a>$bool = $self-&gt;mk_verify;</h2>

<p>Checks if all values in the current object are in accordance with their own allow handler. Specifically useful to check if an empty initialised object has been filled with values satisfying their own allow criteria.</p>

<h2 id="$bool-=-$self-&gt;register_callback(-sub-{-...-}-);"><a id="bool----self--register_callback--sub"></a>$bool = $self-&gt;register_callback( sub { ... } );</h2>

<p>This method allows you to register a callback, that is invoked every time an accessor is called. This allows you to munge input data, access external data stores, etc.</p>

<p>You are free to return whatever you wish. On a <code>set</code> call, the data is even stored in the object.</p>

<p>Below is an example of the use of a callback.</p>

<pre><code>    $object-&gt;some_method( &quot;some_value&quot; );

    my $callback = sub {
        my $self    = shift; # the object
        my $meth    = shift; # &quot;some_method&quot;
        my $val     = shift; # [&quot;some_value&quot;]
                             # could be undef -- check &#39;exists&#39;;
                             # if scalar @$val is empty, it was a &#39;get&#39;

        # your code here

        return $new_val;     # the value you want to be set/returned
    }</code></pre>

<p>To access the values stored in the object, circumventing the callback structure, you should use the <code>___get</code> and <code>___set</code> methods documented further down.</p>

<h2 id="$bool-=-$self-&gt;can(-METHOD_NAME-)"><a id="bool----self--can--METHOD_NAME"></a>$bool = $self-&gt;can( METHOD_NAME )</h2>

<p>This method overrides <code>UNIVERAL::can</code> in order to provide coderefs to accessors which are loaded on demand. It will behave just like <code>UNIVERSAL::can</code> where it can -- returning a class method if it exists, or a closure pointing to a valid accessor of this particular object.</p>

<p>You can use it as follows:</p>

<pre><code>    $sub = $object-&gt;can(&#39;some_accessor&#39;);   # retrieve the coderef
    $sub-&gt;(&#39;foo&#39;);                          # &#39;some_accessor&#39; now set
                                            # to &#39;foo&#39; for $object
    $foo = $sub-&gt;();                        # retrieve the contents
                                            # of &#39;some_accessor&#39;</code></pre>

<p>See the <code>SYNOPSIS</code> for more examples.</p>

<h2 id="$val-=-$self-&gt;___get(-METHOD_NAME-);"><a id="val----self--___get--METHOD_NAME"></a>$val = $self-&gt;___get( METHOD_NAME );</h2>

<p>Method to directly access the value of the given accessor in the object. It circumvents all calls to allow checks, callbacks, etc.</p>

<p>Use only if you <code>Know What You Are Doing</code>! General usage for this functionality would be in your own custom callbacks.</p>

<h2 id="$bool-=-$self-&gt;___set(-METHOD_NAME-=&gt;-VALUE-);"><a id="bool----self--___set--METHOD_NAME---VALUE"></a>$bool = $self-&gt;___set( METHOD_NAME =&gt; VALUE );</h2>

<p>Method to directly set the value of the given accessor in the object. It circumvents all calls to allow checks, callbacks, etc.</p>

<p>Use only if you <code>Know What You Are Doing</code>! General usage for this functionality would be in your own custom callbacks.</p>

<h2 id="$bool-=-$self-&gt;___alias(-ALIAS-=&gt;-METHOD-);"><a id="bool----self--___alias--ALIAS---METHOD"></a>$bool = $self-&gt;___alias( ALIAS =&gt; METHOD );</h2>

<p>Method to directly alias one accessor to another for this object. It circumvents all sanity checks, etc.</p>

<p>Use only if you <code>Know What You Are Doing</code>!</p>

<h1 id="LVALUE-ACCESSORS"><a id="LVALUE"></a>LVALUE ACCESSORS</h1>

<p><code>Object::Accessor</code> supports <code>lvalue</code> attributes as well. To enable these, you should create your objects in the designated namespace, <code>Object::Accessor::Lvalue</code>. For example:</p>

<pre><code>    my $obj = Object::Accessor::Lvalue-&gt;new(&#39;foo&#39;);
    $obj-&gt;foo += 1;
    print $obj-&gt;foo;</code></pre>

<p>will actually print <code>1</code> and work as expected. Since this is an optional feature, that&#39;s not desirable in all cases, we require you to explicitly use the <code>Object::Accessor::Lvalue</code> class.</p>

<p>Doing the same on the standard <code>Object</code>&gt;Accessor&gt; class would generate the following code &amp; errors:</p>

<pre><code>    my $obj = Object::Accessor-&gt;new(&#39;foo&#39;);
    $obj-&gt;foo += 1;

    Can&#39;t modify non-lvalue subroutine call</code></pre>

<p>Note that <code>lvalue</code> support on <code>AUTOLOAD</code> routines is a <code>perl 5.8.x</code> feature. See perldoc <a href="https://metacpan.org/pod/perl58delta">perl58delta</a> for details.</p>

<h2 id="CAVEATS">CAVEATS</h2>

<ul>

<li><p>Allow handlers</p>

<p>Due to the nature of <code>lvalue subs</code>, we never get access to the value you are assigning, so we can not check it against your allow handler. Allow handlers are therefor unsupported under <code>lvalue</code> conditions.</p>

<p>See <code>perldoc perlsub</code> for details.</p>

</li>
<li><p>Callbacks</p>

<p>Due to the nature of <code>lvalue subs</code>, we never get access to the value you are assigning, so we can not check provide this value to your callback. Furthermore, we can not distinguish between a <code>get</code> and a <code>set</code> call. Callbacks are therefor unsupported under <code>lvalue</code> conditions.</p>

<p>See <code>perldoc perlsub</code> for details.</p>

</li>
</ul>

<h1 id="GLOBAL-VARIABLES"><a id="GLOBAL"></a>GLOBAL VARIABLES</h1>

<h2 id="$Object::Accessor::FATAL"><a id="Object::Accessor::FATAL"></a>$Object::Accessor::FATAL</h2>

<p>Set this variable to true to make all attempted access to non-existent accessors be fatal. This defaults to <code>false</code>.</p>

<h2 id="$Object::Accessor::DEBUG"><a id="Object::Accessor::DEBUG"></a>$Object::Accessor::DEBUG</h2>

<p>Set this variable to enable debugging output. This defaults to <code>false</code>.</p>

<h1 id="TODO">TODO</h1>

<h2 id="Create-read-only-accessors"><a id="Create"></a>Create read-only accessors</h2>

<p>Currently all accessors are read/write for everyone. Perhaps a future release should make it possible to have read-only accessors as well.</p>

<h1 id="CAVEATS1">CAVEATS</h1>

<p>If you use codereferences for your allow handlers, you will not be able to freeze the data structures using <code>Storable</code>.</p>

<p>Due to a bug in storable (until at least version 2.15), <code>qr//</code> compiled regexes also don&#39;t de-serialize properly. Although this bug has been reported, you should be aware of this issue when serializing your objects.</p>

<p>You can track the bug here:</p>

<pre><code>    http://rt.cpan.org/Ticket/Display.html?id=1827</code></pre>

<h1 id="BUG-REPORTS"><a id="BUG"></a>BUG REPORTS</h1>

<p>Please report bugs or other issues to &lt;bug-object-accessor@rt.cpan.org&gt;.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>This module by Jos Boumans &lt;kane@cpan.org&gt;.</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Object::Accessor, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Object::Accessor</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Object::Accessor</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Object::Accessor.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
